import React, { Component } from 'react'
import 'antd-mobile/dist/antd-mobile.css'
import Home from 'views/Home'
import Search from 'views/Search'
import {BrowserRouter as Router,Route,Switch,Redirect} from 'react-router-dom'

export default class App extends Component {
  render() {
    return (
      <Router>
      <Switch>
        <Route path='/home' component={Home}></Route>
        <Route path='/search' component={Search}></Route>
        <Redirect exact from='/' to='/home/index/recommend'></Redirect>
      </Switch>
    </Router>
    )
  }
}

